package model;

public class Group {
    private int id;
    private String name;
    private int classId;
    private int score;
    
    public Group(int id, String name, int classId) {
        this.id = id;
        this.name = name;
        this.classId = classId;
        this.score = 0;
    }
    
    // Getters and Setters
    public int getId() { return id; }
    public void setId(int id) { this.id = id; }
    
    public String getName() { return name; }
    public void setName(String name) { this.name = name; }
    
    public int getClassId() { return classId; }
    public void setClassId(int classId) { this.classId = classId; }
    
    public int getScore() { return score; }
    public void setScore(int score) { this.score = score; }
    
    // 重写toString方法，使ComboBox显示小组名称
    @Override
    public String toString() {
        return name;
    }
} 